package com.meal.base.test.DesignMode.strategy;

/**
 * @program: meal->Subtraction
 * @description: 减法策略
 * @author: yangzhanghui
 * @create: 2020-04-03 16:50
 **/
public class Subtraction implements Strategy{//实现算法接口

    @Override
    public int calculate(int a, int b) {//减数与被减数
        return a - b;//这里我们做减法运算
    }

}